package com.wqz.dao;

import com.wqz.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    public List<User> findUser(@Param("userName") String userName,@Param("gender") int gender) throws Exception;

    /**
     * 一对多手动映射
     * @param id
     * @return
     * @throws Exception
     */
    public User findUserById(@Param("id") Integer id) throws Exception;

    /**
     * 多对多  手动映射
     * @param id
     * @return
     * @throws Exception
     */
    public List<User> findUserListById(@Param("id") Integer id) throws Exception;
}
